﻿using System;
using System.Collections.Generic;
using System.Data;
using Runda.EShop.Common.Utility;
using Runda.EShop.Dal;
using Runda.EShop.Common.Entity;


namespace Runda.EShop.Bll
{ 
    public partial class BizOrderComplaintBll  
    {
        public BizOrderComplaintEntity GetOrderComplaintEntity(Guid ComplainID)
        {
            BizOrderComplaintDal dal = new BizOrderComplaintDal();
            DataTable dt = dal.GetOrderComplaintEntity(ComplainID);
            if (dt.Rows.Count > 0)
                return base.BuildEntityFromDataRow<BizOrderComplaintEntity>(dt.Rows[0]);
            else return null;
        }
    }
}

